package com.feng.servlet3_test;

import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class UserListener implements ServletContextListener {
    //监听servletContext销毁
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("容器启动");
    }

    //监听servletContext启动初始化
    @Override
     public void contextDestroyed(ServletContextEvent sce) {

    }
}
